package com.cy.pj.sys.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author YuBaoFu
 * @create 2025/06/03
 * @description
 */
@Mapper
public interface SysUserRoleDao {

    int deleteObjectsByRoleId(Integer roleId);

    int insertObjects(@Param("userId") Integer userId,@Param("roleIds") Integer[] roleIds);

    List<Integer> findRoleIdsByUserId(Integer userId);

    int deleteObjectsByUserId(Integer userId);

}
